<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>内蒙古草都饲草料研究院</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<link href="static/css/cdyjy.css" rel="stylesheet" type="text/css" />
  </head>
  
  <!--头部开始 -->
<%@include file="../../frame/head.jsp" %>
<!--头部结束 -->
<!--中间内容块开始 -->
<div class="center_main">
  <div class="main">
    <div class="main_bg">
      <div id="left">
        <div class="leftbg" style="border-bottom:none; margin-top:0px;">
          <div class="bt"><span>关于我们</span></div>
          <div class="left_nr" style="border-bottom:none">
            <div class="lnr">
              <ul>
                <li><a href='dic/goAboutUs.do' title='关于我们'>关于我们</a></li>
				<!-- <li><a href='dic/goDepartment.do' title='部门职责'>部门职责</a></li> -->
				<li><a href='dic/goAboutUs.do' title='荣誉资质'>荣誉资质</a></li>
				<li class="cpfl_yj"><a href='dic/goExpert.do' class=''>专家风采</a></li> 
        	 </ul>
            </div>
          </div>
        </div>
      </div>
      <div id="right">
        <div class="bt1"><span>网上留言</span><small>当前位置：<a href="index.jsp">首页</a>&nbsp;-&nbsp;网上留言</small></div>
        <div class="dpwz">
          <h1>
          <script language="JavaScript1.2" type="text/javascript">
<!--
function confirm_delete(){
	if (confirm("你确定真的要这么做吗？")){
		return true;
	}
	return false;
}
//-->
                                  </script>
          <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="right" height="5"></td>
            </tr>
            <tr>
              <td align="right"><a href="msg/addmsg.do"><img src="static/bookimg/book.gif" width="107" height="33" border="0" /></a></td>
            </tr>
          </table>
          <!-- 判断是否有留言 -->
      
          <!-- 分页功能代码块,可独立使用 -->
          
          <!-- 将RS记录指针指向第一个记录，然后开始判断移动记录时，记录结尾是否为空，如果不为空接着移动指针，把所有数据都读取出来。直到结尾为空时，退出循环 -->
       <c:forEach items="${pageInfo.list}" var="var" varStatus="vs">
		 <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC" >
            <tr >
              <td width="110" align="center" bgcolor="#EAEAEA">第${var.MESSAGE_ID}位</td>
              <td bgcolor="#EAEAEA" ><table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="15"><img src="static/bookimg/posttime.gif" width="11" height="11" /></td>
                  <td align="left" >：<fmt:formatDate value="${var.MESSAGE_DATE }" pattern="yyyy-MM-dd HH:mm:ss"/> </td>
                  <td width="30" align="center"><img src="static/bookimg/qq.gif" alt="QQ：1003589522" width="18" height="18" /></td>
                  <td width="30" align="center"><a href="mailto:${var.EMAIL}"><img src="static/bookimg/MAIL.gif" alt="E-amil：${var.EMAIL}" width="18" height="18" border="0" /></a></td>
                  <td width="30" align="center"><img src="static/bookimg/friend.gif" alt="来自：内蒙古" width="18" height="18" /></td>
                  <td width="30" align="center"><img src="static/bookimg/ip.gif" alt="IP：116.52.8.180" width="18" height="18" /></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td valign="middle" bgcolor="#EAEAEA" ><table width="100%"  border="0" cellpadding="0" cellspacing="0">
                <tr><!-- 留言头像 -->
                  <td align="center"><img src="${var.MESSAGE_PIC}" width="32" height="32" /></td>
                </tr>
                <tr>
                  <td height="20" align="center"><strong>${var.NICKNAME}</strong></td>
                </tr>
              </table></td>
              <td align="left" valign="top" bgcolor="#EAEAEA" ><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout:fixed;word-break:break-all">



                <tr><!-- 留言表情 -->
                  <td width="7%" align="center"><img src="static/bookimg/icons/${var.MESSAGE_FACE}.gif" width="20" height="20" /></td>
                  <td width="93%" align="left">
                  	<p style="font-family:verdana;font-size:80%;">${var.MESSAGE_TITLE}</p>
                   <!--  <font color='#EAEAEA'>[置顶]</font> -->
                  </td>
                </tr>
                <tr>
                  <td colspan="2" align="left"><p style="font-family:verdana;font-size:80%;">${var.MESSAGE_CONTENT}</p></td>
                </tr>
              </table>
                
                <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout:fixed;word-break:break-all">
                  <tr>
                    <td align="center">----------------------------------------------------------</td>
                  </tr>
                  <tr>
                    <td><p style="font-family:verdana;font-size:80%;color:green">站长回复：${var.reply.REPLY_CONTENT}</p></td>
                  </tr>
                </table>
                </td>
            </tr>
          </table>
     </c:forEach>
          
          <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
				  <td height="41" align="center" >共 <font color='#FF0000'>${pageInfo.total }</font> 篇　<b><a href='msg/listmsg.do?pn=${pageInfo.pages }'>[尾页]</a></b> 
				  	<c:if test="${pageInfo.hasPreviousPage }">
				  		<b><a href="msg/listmsg.do?pn=${pageInfo.pageNum-1 }">[上一页]</a></b>
				  	</c:if>
				  	<c:if test="${pageInfo.hasNextPage }">
				 		 <b><a href="msg/listmsg.do?pn=${pageInfo.pageNum+1 }">[下一页]</a></b>
				    </c:if>
				  <b><a href="msg/listmsg.do?pn=1">[首页]</a></b>　页次：<font color='#ff0000'>${pageInfo.pageNum }</font>/${pageInfo.pages }页　
					
					</td>
				</tr>
			  </table>
			  
          </h1>
        </div>
      </div>
      <div class="clear"></div>
    </div>
  </div>
</div>
<!--中间内容块结束 -->
<!--bottom开始 -->
<%@include file="../../frame/bottom.jsp" %>
<!--bottom结束 -->
</body>
</html>
